package com.yanqu.road.server.cmd.wechatrank;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.WechatRankBlackUserProto.WechatRankProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.CmdApi;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.wechatrank.WechatRankModule;
import com.yanqu.road.server.protocol.Protocol;

@CmdApi(reqMsg = WechatRankProto.WechatRankOperateSwitchReqMsg.class, respMsg = WechatRankProto.WechatRankOperateSwitchRespMsg.class)
@Cmd(code = Protocol.S_WECHAT_RANK_OPERATE_POST_SWITCH, desc = "微信排行-操作开关")
public class WechatRankOperaSwitchCmd extends AbstractCommand {

	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
		player.getModule(WechatRankModule.class).operateSwitch();
	}

	@Override
	public void sendData(GamePlayer player) {

	}

}
